import React from 'react';

module.exports = [
  {
    key:'id',
    title:'',
    dataType:'varchar',
    primary : true,
    width: 0,
    className: 'disnon-table',
    render: () => {
    }
  },{
    key:'cardBankName',
    title:'卡种',
    dataType:'varchar',
  },
  {
    key:'cardBankCode',
    title:'银行代码',
    dataType:'varchar',
  },
  {
    key:'merCode',
    title:'商户号',
    dataType:'varchar',
  },
  {
    key:'tradeModel',
    title:'交易模式',
    dataType:'varchar',
    render: (text) => {
      let showText = '';
      switch (text) {
        case 0:
          showText = '批量';
          break;
        case 1:
          showText = '单笔';
          break;
      
        default:
          break;
      }
      return <span>{showText}</span>
    }
  },
  {
    key:'status',
    title:'当前状态',
    dataType:'varchar',
    render: (text) => {
      let showText = '';
      switch (text) {
        case 0:
          showText = '关闭';
          break;
        case 1:
          showText = '启用';
          break;
      
        default:
          break;
      }
      return <span>{showText}</span>
    }
  },
  {
    key:'merType',
    title:'商户类型',
    dataType:'varchar',
    render: (text) => {
      let showText = '';
      switch (text) {
        case 1:
          showText = '通联';
          break;
        // case 2:
        //   showText = '启用';
        //   break;
      
        default:
          showText = '其他';
          break;
      }
      return <span>{showText}</span>
    }
  },
];
